<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul>
        <li>
            时光梦回花落处
        </li>
    </ul>
    <div id="time">2023-1-6</div>
    <script>
        var vb = document.getElementById('time');
        console.log(vb);
        console.log(typeof vb);
        console.dir(vb);//可以查看元素里面的对象和方法

        var ba = document.getElementsByTagName('li');
        console.log(ba);
    </script>
</body>
</html>